<template>
  <div class="hm-button" @click="fn">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "MyComponent",
  props: {},
  data() {
    return {};
  },
  methods: {
    fn() {
      this.$emit("click");
    }
  },
  computed: {},
  created() {},
  mounted() {}
};
</script>

<style scoped lang='less'>
.hm-button {
  height: 50px;
  line-height: 50px;
  text-align: center;
  margin: 20px;
  background: #cc3300;
  font-size: 16px;
  border-radius: 25px;
}
</style>